package com.softcits.email.quartz;

import java.sql.Connection;
import java.sql.SQLException;

import javax.sql.DataSource;

import org.quartz.utils.ConnectionProvider;

public class SoftCitsConnectionProvider implements ConnectionProvider {

    private static DataSource dataSource;
    
    public static void setDataSource(DataSource ds) {
        dataSource = ds;
    }
    
    @Override
    public Connection getConnection() throws SQLException {
        return dataSource.getConnection();
    }

    @Override
    public void shutdown() throws SQLException {
        // TODO Auto-generated method stub

    }

    @Override
    public void initialize() throws SQLException {
        // TODO Auto-generated method stub

    }

}
